/*Include files*/
#include "rtc\rtcTask.h"

/*Global vars*/
static volatile uint32_t timestamp;
static volatile uint32_t second_tick;

/*Functions*/
uint32_t RTC_GetCounter(void)
{
	return second_tick;
}

void RTC_SetCounter(uint32_t val)
{
	second_tick = val;
}

void vRtcTask(void *pvParameters)
{
    for ( ; ; )
    {
        RTC_SetCounter(second_tick++);
        vTaskDelay(1000);
    }
}
